package com.neusoft.bizcore.activiti.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.neusoft.bizcore.activiti.dto.LockDataDTO;
import com.neusoft.bizcore.web.support.Searchable;

public interface LockDataService {

    List<LockDataDTO> index(Searchable searchable);

    Page<LockDataDTO> search(Pageable pageable, Searchable searchable);

    LockDataDTO create(LockDataDTO dto);

    LockDataDTO update(Long id, LockDataDTO dto);

    LockDataDTO details(Long id);

    void delete(Long id);
    
    LockDataDTO findByCode(String code);

    void deleteByCode(String code);

    void deleteByWorkNum(String workNum);

	List<LockDataDTO> createAll(List<LockDataDTO> dtoList);
}
